﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using MBSBLC;

namespace MBS_FoodBooking.Models
{
    public class FoodOrder
    {
        BLC proxy = new BLC();
        private int orderId;

        public int OrderId
        {
            get { return orderId; }
            set { orderId = value; }
        }

        private int bookingId;

        public int BookingId
        {
            get { return bookingId; }
            set { bookingId = value; }
        }

        private string itemsOrdered;

        public string ItemsOrdered
        {
            get { return itemsOrdered; }
            set { itemsOrdered = value; }
        }

        private decimal price;

        public decimal Price
        {
            get { return price; }
            set { price = value; }
        }

        public FoodOrder(int bookingid,string items,decimal price)
        {
            
            this.BookingId = bookingid;
            this.ItemsOrdered = items;
            this.Price = price;
        
        }

        public int OrderFood()
        {
          return proxy.addFoodOrder(1,this.BookingId,this.ItemsOrdered,this.Price);

        
        }
    }
}